package com.corning.patient.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.corning.common.utils.PageUtils;
import com.corning.common.utils.Query;

import com.corning.patient.dao.InquiryRecordDao;
import com.corning.patient.entity.InquiryRecordEntity;
import com.corning.patient.service.InquiryRecordService;


@Service("inquiryRecordService")
public class InquiryRecordServiceImpl extends ServiceImpl<InquiryRecordDao, InquiryRecordEntity> implements InquiryRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InquiryRecordEntity> page = this.page(
                new Query<InquiryRecordEntity>().getPage(params),
                new QueryWrapper<InquiryRecordEntity>()
        );

        return new PageUtils(page);
    }

}